﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Util
{
   public class RedisKey
    {
        /// <summary>
        /// 数据表反射缓存
        /// </summary>
        public static string DbKey = "DB-Table:{0}";

        /// <summary>
        /// 是否开启缓存
        /// </summary>
        public static string EnableCacheKey = "EnableCache:{0}";

        /// <summary>
        /// 列表数据缓存
        /// </summary>
        public static string DataListKey = "Data-List:{0}";

        /// <summary>
        /// 分页列表数据缓存
        /// </summary>
        public static string DataPageListKey = "Data-Page-List:{0}_{1}_{2}_{3}";

        /// <summary>
        /// 单数据缓存
        /// </summary>
        public static string DataDetailKey = "Data-Detail:{0}_{1}";

        /// <summary>
        /// 权限key
        /// </summary>
        public static readonly string RoleKey = "Role:{0}";
        /// <summary>
        /// 菜单key
        /// </summary>
        public static readonly string MenuKey = "Menu:{0}";

        /// <summary>
        /// 手机验证码key
        /// </summary>
        public static readonly string PhoneKey = "Phone:{0}";

        /// <summary>
        /// 业务逻辑key，记录所有业务接口的请求响应key
        /// </summary>
        public static readonly string BusinessKey = "Business";

        /// <summary>
        /// 业务逻辑所有控制台的key
        /// </summary>
        public static readonly string BusinessControlKey = "Control:{0}";

        /// <summary>
        /// 业务逻辑控制台下的接口key
        /// </summary>
        public static readonly string BusinessActionKey = "Action:{0}_{1}_{2}";

        /// <summary>
        /// 小程序用户的内容解密密钥
        /// </summary>
        public static readonly string AppletKey = "AppletKey:{0}";

    }
}
